package com.ruoyi.animal.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * 动物信息对象 animal_information
 * 
 * @author gw
 * @date 2025-01-06
 */
@Document(indexName = "animalinformation")
public class AnimalInformation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 动物ID */
    @Id
    private Long animalId;

    /** 实验设计ID */
    @Excel(name = "实验设计ID")
    private Long designId;

    /** 实验设计名称 */
    @Excel(name = "实验设计名称")
    private String designName;

    /** 动物编号 */
    @Excel(name = "动物编号")
    private String animalNumber;



    /** 动物种类ID */
    @Excel(name = "动物种类ID")
    private Long speciesId;

    /** 动物种类名称 */
    @Excel(name = "动物名称")
    private String speciesName;


    /** 动物品种 */
    @Excel(name = "动物品种id")
    private Long breed;

    /** 动物品种 */
    @Excel(name = "动物品种名称")
    private String breedName;

    /** 动物年龄（单位：月） */
    @Excel(name = "动物年龄", readConverterExp = "单位：月")
    private Long age;

    /** 健康状态 */
    @Excel(name = "健康状态")
    private Integer healthStatus;

    /** 最后健康检查日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后健康检查日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastCheckupDate;

    /** 动物图片 */
    @Excel(name = "动物图片")
    private String animalImage;

    private String md5Hash;

    /** 删除人 */
    private String deleteBy;

    /** 删除时间 */
    private Date deleteTime;

    /** 删除标记（0-未删除（默认），1-已删除） */
    private Integer delFlag;

    /** 版本号，用于乐观锁控制 */
    private Integer version;

    public String getMd5Hash() {
        return md5Hash;
    }

    public void setMd5Hash(String md5Hash) {
        this.md5Hash = md5Hash;
    }

    public String getDesignName() {
        return designName;
    }

    public void setDesignName(String designName) {
        this.designName = designName;
    }

    public String getSpeciesName() {
        return speciesName;
    }

    public String getBreedName() {
        return breedName;
    }

    public void setBreedName(String breedName) {
        this.breedName = breedName;
    }

    public void setSpeciesName(String speciesName) {
        this.speciesName = speciesName;
    }

    public void setAnimalId(Long animalId)
    {
        this.animalId = animalId;
    }

    public Long getAnimalId() 
    {
        return animalId;
    }
    public void setDesignId(Long designId) 
    {
        this.designId = designId;
    }

    public Long getDesignId() 
    {
        return designId;
    }
    public void setAnimalNumber(String animalNumber) 
    {
        this.animalNumber = animalNumber;
    }

    public String getAnimalNumber() 
    {
        return animalNumber;
    }
    public void setSpeciesId(Long speciesId) 
    {
        this.speciesId = speciesId;
    }

    public Long getSpeciesId() 
    {
        return speciesId;
    }
    public void setBreed(Long breed)
    {
        this.breed = breed;
    }

    public Long getBreed()
    {
        return breed;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setHealthStatus(Integer healthStatus)
    {
        this.healthStatus = healthStatus;
    }

    public Integer getHealthStatus()
    {
        return healthStatus;
    }
    public void setLastCheckupDate(Date lastCheckupDate) 
    {
        this.lastCheckupDate = lastCheckupDate;
    }

    public Date getLastCheckupDate() 
    {
        return lastCheckupDate;
    }
    public void setAnimalImage(String animalImage) 
    {
        this.animalImage = animalImage;
    }

    public String getAnimalImage() 
    {
        return animalImage;
    }
    public void setDeleteBy(String deleteBy) 
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy() 
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setVersion(Integer version) 
    {
        this.version = version;
    }

    public Integer getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("animalId", getAnimalId())
            .append("designId", getDesignId())
            .append("animalNumber", getAnimalNumber())
            .append("speciesId", getSpeciesId())
            .append("breed", getBreed())
            .append("age", getAge())
            .append("healthStatus", getHealthStatus())
            .append("lastCheckupDate", getLastCheckupDate())
            .append("animalImage", getAnimalImage())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("delFlag", getDelFlag())
            .append("version", getVersion())
            .toString();
    }
}
